/*
 * @Author: thats-all-right-ha-ha 8280209+thats-all-right-ha-ha@user.noreply.gitee.com
 * @Date: 2024-07-10 16:00:07
 * @LastEditors: thats-all-right-ha-ha 8280209+thats-all-right-ha-ha@user.noreply.gitee.com
 * @LastEditTime: 2024-07-18 12:29:59
 * @FilePath: \museum\src\router\index.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { createRouter, createWebHistory } from 'vue-router'
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: () => import('@/views/dashboard/index.vue')
    },
    {
      path: '/guide',
      name: 'guide',
      component: () => import('@/views/guide/index.vue')
    },
    {
      path: '/exhibit',
      name: 'exhibit',
      component: () => import('@/views/exhibit/index.vue')
    },
    {
      path: '/collect',
      name: 'collect',
      component: () => import('@/views/collect/index.vue')
    },
    {
      path: '/culture',
      name: 'culture',
      component: () => import('@/views/culture/index.vue')
    },
    {
      path: '/education',
      name: 'education',
      component: () => import('@/views/education/index.vue')
    },
    {
      path: '/news',
      name: 'news',
      component: () => import('@/views/news/index.vue')
    },
    {
      path: '/science',
      name: 'science',
      component: () => import('@/views/science/index.vue')
    },
    {
      path: '/about',
      name: 'about',
      component: () => import('@/views/about/index.vue')
    },
    {
      path: '/:pathMatch(.*)*',
      component: () => import('@/views/404/index.vue')
    }
  ]
})

export default router
